package com.darwin.darwinMVC.commands
{
	import com.darwin.darwinMVC.mvc.Command;
	import com.darwin.darwinMVC.mvc.DataSource;
	
	/**
	 * 数据源命令,即DataSource类发出的命令
	 * @author lipi
	 */
	public class SourceCommand extends Command
	{
		public function SourceCommand(cmdName:String, target:Object=null)
		{
			super(cmdName, target);
		}
		
		/**
		 * 取得dataSource对象
		 * @return 
		 */
		public function get dataSource():DataSource
		{
			return target as DataSource;
		}
		

	}
}